package com.koala.javaproject.controller;

import com.asianlink.uc.sdk.dto.UserInfoDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class LoginController {

    @GetMapping("/login/{name}")
    public String login(@PathVariable(name = "name") String name) {
        System.out.println("name = " + name);
        UserInfoDTO userInfoDTO = new UserInfoDTO();
        userInfoDTO.setDisplayName("---userInfoDTO---");
        return "hello world update docker test" + name + userInfoDTO.getDisplayName();
    }

}
